function changDelivery() {
	var d = document.getElementById('d');
	var url = document.update.delivery_url;
	url.value = d.options[d.selectedIndex].getAttribute('url');
}

window.onload = function() {
	var delivery = document.update.order_delivery;
	var dd = document.getElementsByTagName('dd');
	var deliveryTemp = [];
	for(var i=0;i<dd.length;i++) {
		if(dd[i].className == 'delivery') {
			deliveryTemp.push(dd[i]);
		}
	}
	if(delivery[2].checked) {
		for(var i=0;i<deliveryTemp.length;i++) {
			deliveryTemp[i].style.display = 'block';
		}
	}
	
	delivery[0].onclick = function() {
		for(var i=0;i<deliveryTemp.length;i++) {
            deliveryTemp[i].style.display = 'none';
        }
	}
	
	delivery[1].onclick = function() {
        for(var i=0;i<deliveryTemp.length;i++) {
            deliveryTemp[i].style.display = 'none';
        }
    }
    
    delivery[2].onclick = function() {
        for(var i=0;i<deliveryTemp.length;i++) {
            deliveryTemp[i].style.display = 'block';
        }
    }
	
}